package com.zhengx.baselib.base;


import android.content.res.Configuration;
import android.content.res.Resources;
import android.support.v7.app.AppCompatActivity;

/**
 * name：BaseActivity
 * class: describe
 * author: zhengx
 * create_time: 2019/1/16
 */

public class BaseActivity extends AppCompatActivity {

    @Override
    public Resources getResources() {
        Resources res = super.getResources();
        Configuration config = new Configuration();
        config.setToDefaults();
        res.updateConfiguration(config,res.getDisplayMetrics());
        return super.getResources();
    }
}
